package com.example.demo.nuoqi.service;

import com.example.demo.nuoqi.pojo.Application;
import com.github.pagehelper.PageInfo;

import java.util.List;

/****
 * @Author:shenkunlin
 * @Description:Application业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface ApplicationService {

    /***
     * Application多条件分页查询
     * @param application
     * @param page
     * @param size
     * @return
     */
    PageInfo<Application> findPage(Application application, int page, int size);

    /***
     * Application分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<Application> findPage(int page, int size);

    /***
     * Application多条件搜索方法
     * @param application
     * @return
     */
    List<Application> findList(Application application);

    /***
     * 删除Application
     * @param id
     */
    void delete(Integer id);

    /***
     * 修改Application数据
     * @param application
     */
    void update(Application application);

    /***
     * 新增Application
     * @param application
     */
    void add(Application application);

    /**
     * 根据ID查询Application
     * @param id
     * @return
     */
     Application findById(Integer id);

    /***
     * 查询所有Application
     * @return
     */
    List<Application> findAll();


    Application get(Application entityType);
}
